package com.sca.dealf.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.sca.dealf.entity.CommonResult;
import com.sca.dealf.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(qualifier="dealfService", value="cloud-product-service", fallback = DealfallbackService.class)
public interface DealfService {

    @GetMapping("/product/get/{id}")
    CommonResult<Product> getPaymentById(@PathVariable("id") Long id );
}
